.class public final Lcom/wqmobile/sdk/protocol/r;
.super Ljava/lang/Thread;


# static fields
.field private static final c:[B

.field private static final d:[B

.field private static final e:[B


# instance fields
.field a:[B

.field b:[B

.field private f:Landroid/os/Handler;

.field private g:Landroid/os/Handler;

.field private h:Lcom/wqmobile/sdk/protocol/a;

.field private i:Lcom/wqmobile/sdk/protocol/b/a;

.field private j:Landroid/os/Message;

.field private k:Z

.field private l:Ljava/util/TimerTask;

.field private m:I


# direct methods
.method static constructor <clinit>()V
    .locals 7

    const/4 v6, 0x3

    const/4 v5, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    const/4 v2, 0x4

    new-array v0, v2, [B

    const/16 v1, 0x3b

    aput-byte v1, v0, v3

    const/16 v1, 0x29

    aput-byte v1, v0, v4

    const/16 v1, 0x27

    aput-byte v1, v0, v5

    const/16 v1, 0x13

    aput-byte v1, v0, v6

    new-array v0, v2, [B

    const/16 v1, -0x2e

    aput-byte v1, v0, v3

    const/16 v1, 0x15

    aput-byte v1, v0, v4

    const/16 v1, 0x3f

    aput-byte v1, v0, v5

    const/16 v1, -0x58

    aput-byte v1, v0, v6

    new-array v0, v2, [B

    fill-array-data v0, :array_0

    sput-object v0, Lcom/wqmobile/sdk/protocol/r;->c:[B

    new-array v0, v2, [B

    fill-array-data v0, :array_1

    sput-object v0, Lcom/wqmobile/sdk/protocol/r;->d:[B

    new-array v0, v2, [B

    fill-array-data v0, :array_2

    sput-object v0, Lcom/wqmobile/sdk/protocol/r;->e:[B

    return-void

    nop

    :array_0
    .array-data 0x1
        0xc0t
        0xa8t
        0x1t
        0x83t
    .end array-data

    :array_1
    .array-data 0x1
        0x3bt
        0x29t
        0x27t
        0x5dt
    .end array-data

    :array_2
    .array-data 0x1
        0xd2t
        0x15t
        0x3ft
        0xb3t
    .end array-data
.end method

.method public constructor <init>(Lcom/wqmobile/sdk/protocol/a;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    const v0, 0xffff

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->a:[B

    new-array v0, v1, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->b:[B

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    iput-boolean v1, p0, Lcom/wqmobile/sdk/protocol/r;->k:Z

    iput v1, p0, Lcom/wqmobile/sdk/protocol/r;->m:I

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/r;->b()V

    new-instance v0, Lcom/wqmobile/sdk/protocol/t;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/protocol/t;-><init>(Lcom/wqmobile/sdk/protocol/r;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/t;->start()V

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/a;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    return-object v0
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;I)V
    .locals 0

    iput p1, p0, Lcom/wqmobile/sdk/protocol/r;->m:I

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;Landroid/os/Handler;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/r;->g:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;Landroid/os/Message;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/r;->j:Landroid/os/Message;

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;Lcom/wqmobile/sdk/protocol/b/a;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/r;->i:Lcom/wqmobile/sdk/protocol/b/a;

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;Ljava/util/TimerTask;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/r;->l:Ljava/util/TimerTask;

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/protocol/r;->k:Z

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/protocol/r;[B)Z
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->i:Lcom/wqmobile/sdk/protocol/b/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->i:Lcom/wqmobile/sdk/protocol/b/a;

    invoke-interface {v0, p1}, Lcom/wqmobile/sdk/protocol/b/a;->a([B)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic b(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->f:Landroid/os/Handler;

    return-object v0
.end method

.method private b()V
    .locals 3

    const-string v0, "udp"

    const-string v1, "adwaken.cn"

    invoke-static {v1}, Ljava/net/InetAddress;->getByName(Ljava/lang/String;)Ljava/net/InetAddress;

    move-result-object v1

    const/16 v2, 0x5d75

    invoke-static {v0, v1, v2}, Lcom/wqmobile/sdk/protocol/n;->a(Ljava/lang/String;Ljava/net/InetAddress;I)Lcom/wqmobile/sdk/protocol/b/a;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->i:Lcom/wqmobile/sdk/protocol/b/a;

    return-void
.end method

.method static synthetic c(Lcom/wqmobile/sdk/protocol/r;)Lcom/wqmobile/sdk/protocol/b/a;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->i:Lcom/wqmobile/sdk/protocol/b/a;

    return-object v0
.end method

.method static synthetic d(Lcom/wqmobile/sdk/protocol/r;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/protocol/r;->k:Z

    return v0
.end method

.method static synthetic e(Lcom/wqmobile/sdk/protocol/r;)V
    .locals 0

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/r;->b()V

    return-void
.end method

.method static synthetic f(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Message;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->j:Landroid/os/Message;

    return-object v0
.end method

.method static synthetic g(Lcom/wqmobile/sdk/protocol/r;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->g:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic h(Lcom/wqmobile/sdk/protocol/r;)I
    .locals 1

    iget v0, p0, Lcom/wqmobile/sdk/protocol/r;->m:I

    return v0
.end method

.method static synthetic i(Lcom/wqmobile/sdk/protocol/r;)Ljava/util/TimerTask;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->l:Ljava/util/TimerTask;

    return-object v0
.end method


# virtual methods
.method public final a()V
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    const/4 v1, 0x0

    iput v1, v0, Lcom/wqmobile/sdk/protocol/a;->e:I

    return-void
.end method

.method public final run()V
    .locals 3

    invoke-static {}, Landroid/os/Looper;->prepare()V

    new-instance v0, Lcom/wqmobile/sdk/protocol/s;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/protocol/s;-><init>(Lcom/wqmobile/sdk/protocol/r;)V

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->f:Landroid/os/Handler;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/r;->f:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/protocol/a;->a(Landroid/os/Handler;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/a;->g:Ljava/lang/Boolean;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/r;->h:Lcom/wqmobile/sdk/protocol/a;

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v1, Lcom/wqmobile/sdk/protocol/a;->g:Ljava/lang/Boolean;

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-static {}, Landroid/os/Looper;->loop()V

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method
